<?php
namespace session;

class UserSession {
	private $userId;
	private $nickname;
	private $userIdPlayingWith;
	private $socketConnection;
	private $socketConnectionPlayingWith;
	
	public function __construct($userId, $nickname) {
		$this->setUserId($userId);
		$this->setNickname($nickname);
	}
	
	public function setUserId ($userId) {
		$this->userId = $userId;
	}
	
	public function setNickname ($nickname) {
		$this->nickname = $nickname;
	}
	
	public function getUserId () {
		return $this->userId;
	}
	
	public function getNickname() {
		return $this->nickname;
	}
	
	public function setSocketConnection($socketConnection) {
		$this->socketConnection = $socketConnection;
	}
	
	public function getSocketConnection() {
		return $this->socketConnection;
	}
	
	public function setSocketConnectionPlayingWith($socketConnectionPlayingWith) {
		$this->socketConnectionPlayingWith = $socketConnectionPlayingWith;
	}
	
	public function getSocketConnectionPlayingWith() {
		return $this->socketConnectionPlayingWith;
	}
	
	public function setUserIdPlayingWith ($userIdPlayingWith) {
		$this->userIdPlayingWith = $userIdPlayingWith;
	}
	
	public function getUserIdPlayingWith() {
		return $this->userIdPlayingWith;
	}
}